package org.qiyu.live.im.provider.rpc;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.qiyu.live.im.interfaces.ImOnlineRpc;
import org.qiyu.live.im.provider.service.ImOnlineRpcService;

/**
 * @Description: 用户在线检测
 * @Author zhangguangyan
 * @Date 2023/10/03/ 00:03:00
 */
@DubboService
public class ImOnlineRpcImpl implements ImOnlineRpc {
    @Resource
    private ImOnlineRpcService imOnlineRpcService;
    @Override
    public boolean isOnline(long userId, int appId) {
        return imOnlineRpcService.isOnline(userId,appId);
    }
}
